<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../../Css/style.css" />
    <script type="text/javascript" src="../../Js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="../../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../../Js/ckform.js"></script>
    <script type="text/javascript" src="../../Js/common.js"></script>
    <script type="text/javascript" src="../../myjQuery/jQuery-getUrlParam.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
    <script>     
    $(document).ready(function(){
    	  var userid = $.getUrlParam("userid");
    	  $.ajax({
				type:"post",
				url:"../../user/queryView?userid="+userid,
				contentType:"application/json;charset=utf-8",
				success:function(user){
					$('#uid').val(user.uid);
					$('#upwd').val(user.upwd);
					$('#uname').val(user.uname);
					$('#uemail').val(user.uemail);
					}
				});
    	});
    $(document).ready(function(){
    	if($.getUrlParam('alert')==1){
    		alert("修改成功");
    	}
    });
    $(function () {       
		$('#backid').click(function(){
				window.location.href="index.html";
		 });
    });
</script>
</head>
<body>
<form id='addForm' action='../../user/ajaxtest' method="post">
    <table class="table table-bordered table-hover definewidth m10">
        <tr>
            <td width="10%" class="tableleft">帐号</td>
            <td><input type="text" name="uid" id="uid" readOnly="true" /></td>
        </tr>
        <tr>
            <td class="tableleft">密码</td>
            <td><input type="text" name="upwd" id="upwd"/></td>
        </tr>
        <tr>
            <td class="tableleft">昵称</td>
            <td><input type="text" name="uname" id="uname"/></td>
        </tr>
        <tr>
            <td class="tableleft">邮箱</td>
            <td><input type="text" name="uemail" id="uemail"/></td>
        </tr>
        <tr>
            <td class="tableleft">状态</td>
            <td>
                <input type="radio" name="status" value="0" disabled="disabled"/> 启用
              <input type="radio" name="status" value="1" disabled="disabled"/> 禁用
            </td>
        </tr>
        <tr>
            <td class="tableleft"></td>
            <td>
                <button type="submit" class="btn btn-primary" type="button" id="saveid">保存</button>				 
                &nbsp;&nbsp;
                <button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>